package com.lvchen.ui.threefunction;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.lvchen.R;
import com.lvchen.common.base.BaseFragment;
import com.siberiadante.titlelayoutlib.TitleBarLayout;
import cn.jzvd.JZVideoPlayerStandard;


/**
 * 功能三
 */
public class ThreeFragment extends BaseFragment {

    private TitleBarLayout tb_title;

    private JZVideoPlayerStandard videoplayer;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);
        mContentView = inflater.inflate(R.layout.fragment_three, container, false);

        ensureUi();

        return mContentView;
    }

    private void ensureUi() {

        tb_title = (TitleBarLayout) mContentView.findViewById(R.id.tb_title);
        tb_title.setIsHaveLine(false);
        tb_title.setLeftBackViewVisible(View.GONE);

        videoplayer = (JZVideoPlayerStandard) mContentView.findViewById(R.id.videoplayer);
        videoplayer.setUp("http://jzvd.nathen.cn/c6e3dc12a1154626b3476d9bf3bd7266/6b56c5f0dc31428083757a45764763b0-5287d2089db37e62345123a1be272f8b.mp4",
                JZVideoPlayerStandard.SCREEN_WINDOW_NORMAL,
                "视频标题");
//        videoplayer.thumbImageView.setImage("http://p.qpic.cn/videoyun/0/2449_43b6f696980311e59ed467f22794e792_1/640");

    }


    @Override
    public void setUserVisibleHint(boolean isVisibleToUser) {
        super.setUserVisibleHint(isVisibleToUser);

    }

    @Override
    protected View getContentView() {
        return mContentView;
    }

    private void getData() {

    }


}